<template>
	<view>
		 <u-navbar title='公告详情' leftIconColor="white" :autoBack="true" :bgColor="color" titleStyle="color:white" :placeholder="true"></u-navbar>
		 <view style="padding:50rpx 20rpx;">
			 <view v-for="(v,i) in noticeText" :key="i" style="margin-bottom: 20rpx;">
				 {{v}}
			 </view>
		 </view>
	</view>
</template>

<script>
	let app = getApp();
	export default{
		data(){
			return{
				noticeText:[],
				color:app.globalData.defaultColor
			}
		},
		onLoad(){
			this.getNotice()
		},
		methods:{
			getNotice(){
				uni.$u.http.get('/dataDetail/selectNotice').then(res=>{
					res.map(el=>{
						this.noticeText.push(el.noticeContent);
					})
			
				})
			},
		}
	}
</script>

<style>
</style>